<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="app1">
        <input v-model="message" placeholder="edit me" @input="inputChange">
        <p>Message is: {{ message }}</p>
    </div>
    <br>


    <div id="example-5">
        <select v-model="selected">
            <option disabled value="">请选择</option>
            <option>A</option>
            <option>B</option>
            <option>C</option>
        </select>
        <span>Selected: {{ selected }}</span>
    </div>
    <br>

    <div id="app2">
        <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
        <label for="jack">Jack</label>
        <input type="checkbox" id="john" value="John" v-model="checkedNames">
        <label for="john">John</label>
        <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
        <label for="mike">Mike</label>
        <br>
        <span>Checked names: {{ checkedNames }}</span>
    </div>

    <div id="app3">
        <select v-model="selected">
            <option v-for="option in options" v-bind:value="option.value">
                {{ option.text }}
            </option>
        </select>
        <span>Selected: {{ selected }}</span>
    </div>
    <script src="./js/vue.min.js"></script>

    <script>
        let app3 = new Vue({
            el: '#app3',
            data: {
                selected: 'A',
                options: [
                    { text: 'One', value: 'A' },
                    { text: 'Two', value: 'B' },
                    { text: 'Three', value: 'C' }
                ]
            }
        })
    </script>

    <script>
        let app2 = new Vue({
            el: '#app2',
            data: {
                checkedNames: []
            }
        }) 
    </script>


    <script>
        let app1 = new Vue({
            el: '#app1',
            data: {
                message: ''
            },
            methods: {
                inputChange: function () {
                    console.log(this.message);
                }
            }
        })
    </script>

    <script>
        new Vue({
            el: '#example-5',
            data: {
                selected: ''
            }
        })
    </script>
</body>

</html>